package com.kly.pay.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.pay.db.dao.PCallbackDao;
import com.kly.pay.db.entity.PCallbackEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* User: linqu
* Date: 2023-06-06
* Time: 20:27:32.543
*/

@Repository
public class PCallbackDaoImpl extends AbstractBaseMapper<PCallbackEntity> implements PCallbackDao {

    @Override
    public List<PCallbackEntity> queryLastRecords(String payOrderNo) {
        return getSqlSession().selectList(this.getStatement("queryLastRecords"), payOrderNo);
    }

    @Override
    public List<PCallbackEntity> queryNeedCallbackRecords() {
        return getSqlSession().selectList(this.getStatement("queryNeedCallbackRecords"));
    }
}